<form id="myForm" action="<?php echo $current?>createorderaction">
	<p><label><input checked="checked"  type="radio" name="action" value="create">สร้างใบสั่งซื้อ</label></p>
	
	<p><label><input type="radio" name="action" value="edit">แก้ไขใบสั่งซื้อ</label></p>
	<button type="button" >ดำเนินการ</button>
</form>
<script type="text/javascript">
	$(function(){
		$('button[type="button"]').click(function(){
			var action = $('input[type="radio"]').val();
			window.location.href="<?php echo base_url()?>order/"+action;
		})
	})
</script> 